package com.ctgu.tengyun.domain;

import com.ctgu.tengyun.bean.FileBean;

import java.io.Serializable;
import java.util.Date;

public class ProductGuideInfo implements Serializable {

    public static final Composer<Integer, ProductGuideInfo> ID_MAP_COMPOSER = ProductGuideInfo::getId;
    public static final Composer<Integer, ProductGuideInfo> PID_MAP_COMPOSER = ProductGuideInfo::getPid;

    /**
     * 主键id
     */
    private Integer id;

    /**
     * 产品id
     */
    private Integer pid;

    /**
     * 说明书名称
     */
    private String name;

    /**
     * 说明书类型，1-技术说明书，2-使用说明书，3-维护说明书
     */
    private Integer guideType;

    /**
     * 说明书地址
     */
    private FileBean guideFile;

    /**
     * 备注
     */
    private String remark;

    /**
     * 版本号
     */
    private Integer version;

    /**
     * 是否有效,0-无效，1-有效
     */
    private Integer isValid;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 最后更新时间
     */
    private Date lastModifyTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGuideType() {
        return guideType;
    }

    public void setGuideType(Integer guideType) {
        this.guideType = guideType;
    }

    public FileBean getGuideFile() {
        return guideFile;
    }

    public void setGuideFile(FileBean guideFile) {
        this.guideFile = guideFile;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastModifyTime() {
        return lastModifyTime;
    }

    public void setLastModifyTime(Date lastModifyTime) {
        this.lastModifyTime = lastModifyTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pid=").append(pid);
        sb.append(", name=").append(name);
        sb.append(", guideType=").append(guideType);
        sb.append(", guideFile=").append(guideFile);
        sb.append(", remark=").append(remark);
        sb.append(", version=").append(version);
        sb.append(", isValid=").append(isValid);
        sb.append(", createTime=").append(createTime);
        sb.append(", lastModifyTime=").append(lastModifyTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}